/*
 * @Date: 2023-04-30 10:17:02
 * @LastEditTime: 2023-06-23 16:18:32

 * 介绍:
 */
import CrequestList from "./CrequestList.vue";
import type { RequestList } from "@@/hooks/useRequestList";
import type { Slots } from "@@/components/rework/Rlist/index";

export type Instance<F> = Omit<
  GenericComponentExports<typeof CrequestList>,
  "data" | "res"
> & {
  data: RequestList.ApiData<F>;
  res: RequestList.ApiRes<F> | undefined;
};

export function useCrequestListRef<F extends RequestList.Api>() {
  return ref<Instance<F>>();
}
export const extendsClistSlots: (keyof Slots)[] = ["header"];
